package com.factory.iamp.service;

import com.factory.iamp.pojo.Upload;
import com.factory.iamp.pojo.UploadList;
import com.factory.iamp.pojo.User;
import com.factory.iamp.utils.helper.PageHelper;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UploadService {
    int Count();

    int MyCount(String uid);

    List<UploadList> getTableFile(int tid);

    List<UploadList> getContentFile(int oid);

    List<UploadList> ListPaged(PageHelper data);

    List<UploadList> MyListPaged(PageHelper data, String uid);

    Upload addFileSingle(User user, MultipartFile file, int tid) throws Throwable;

    void deleteMyFile(User user, int fid);
}
